package dynamicproxysamples;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyInvocationHandler implements InvocationHandler {
	private Object myActualObj;

	public MyInvocationHandler(Object myActualObj) {
		super();
		this.myActualObj = myActualObj;
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		return method.invoke(myActualObj, args);
	}
}
